package com.ckr.springcloud.service;

import com.ckr.springcloud.dao.DeptDao;
import com.ckr.springcloud.pojo.Dept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Shadowckr
 * @create 2022-01-20 23:11
 */

@Service
public class DeptServiceImpl implements DeptService {
    //自动注入
    @Resource
    private DeptDao deptDao;

    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    public Dept queryById(Long id) {
        return deptDao.queryById(id);
    }

    public List<Dept> queryAll() {
        return deptDao.queryAll();
    }
}
